package com.loser.csp.service.backmanager.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.loser.csp.dal.dao.OrderMapper;
import com.loser.csp.dal.model.Order;
import com.loser.csp.service.backmanager.OrderServices;

@Component("orderServices")
public class OrderServicesImpl implements OrderServices {
    @Autowired
    private OrderMapper orderMapper;
    @Override
    public int deleteByOrderid(Integer orderid) {
        return orderMapper.deleteByOrderid(orderid);
    }

    @Override
    public int insertOrder(Order record) {
        return orderMapper.insertOrder(record);
    }

    @Override
    public int updateByOrder(Order record) {
        return orderMapper.updateByOrder(record);
    }

    @Override
    public Order selectByOrderid(Integer orderid) {
        return orderMapper.selectByOrderid(orderid);
    }

}
